flask: Fix 32-bit compilation of label-pci tool
authorDaniel De Graaf <dgdegra@tycho.nsa.gov>
Mon, 5 Dec 2011 19:32:05 +0000 (19:32 +0000)
committerDaniel De Graaf <dgdegra@tycho.nsa.gov>
Mon, 5 Dec 2011 19:32:05 +0000 (19:32 +0000)
commit63ee70ebd0ed1a0ef6356995cd5beb0298f933c1
tree1753550bbdeaee47f68f5e1ebb001bd061a3a7e0
parentb4756b45ac1253c25973d687db739146d7d8ccfe
flask: Fix 32-bit compilation of label-pci tool

The 32-bit tools need to support 64-bit addresses, so use the correct
printf/scanf formats. Also, some systems declare fscanf with attribute
warn_unused_result, so check the result instead of relying on the
value of start being unmodified across a failed call.

Signed-off-by: Daniel De Graaf <dgdegra@tycho.nsa.gov>
Committed-by: Keir Fraser <keir@xen.org>
tools/flask/utils/label-pci.c